package com.px.service;

import com.px.pojo.ShOrder;

import java.util.List;

public interface ShOrderService {

    //获取订单列表
    List<ShOrder> selectShOrderList(String orderNo,
                                    Integer userId,
                                    Integer commodityId,
                                    Double minPrice, Double maxPrice,
                                    Integer payStatus,
                                    String aliTradeNo,
                                    Integer pageBegin, Integer pageSize)throws Exception;

    //获取订单记录数
    int selectShOrderCount(String orderNo,
                           Integer userId,
                           Integer commodityId,
                           Double minPrice,Double maxPrice,
                           Integer payStatus,
                           String aliTradeNo)throws Exception;

    //获取订单信息
    ShOrder selectShOrder(Integer orderId)throws Exception;

    //添加订单信息
    int insertShOrder(ShOrder shOrder)throws Exception;

    //更新订单信息
    int updateShOrder(ShOrder shOrder)throws Exception;

    //删除订单信息
    int deleteShOrder(Integer id)throws Exception;
}
